# Multilibs for e500
#
# Copyright (C) 2003-2015 Free Software Foundation, Inc.
#
# This file is part of GCC.
#
# GCC is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# GCC is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with GCC; see the file COPYING3.  If not see
# <http://www.gnu.org/licenses/>.

# What we really want are these variants:
#	-mcpu=7400
#	-mcpu=7400 -maltivec -mabi=altivec
#	-mcpu=7400 -msoft-float
#	-msoft-float
#	-mno-spe -mabi=no-spe
#	-mno-spe -mabi=no-spe -mno-isel
# so we'll need to create exceptions later below.

MULTILIB_OPTIONS	= mcpu=7400 \
			  maltivec \
			  mabi=altivec \
			  msoft-float \
			  mno-spe \
			  mabi=no-spe \
			  mno-isel \
			  mlittle

MULTILIB_DIRNAMES	= mpc7400 altivec abi-altivec \
			  nof no-spe no-abi-spe no-isel le

MULTILIB_EXCEPTIONS	= maltivec mabi=altivec mno-spe mabi=no-spe mno-isel \
			  maltivec/mabi=altivec \
			  mcpu=7400/maltivec \
			  mcpu=7400/mabi=altivec \
			  *mcpu=7400/*mno-spe* \
			  *mcpu=7400/*mabi=no-spe* \
			  *mcpu=7400/*mno-isel* \
			  *maltivec/*msoft-float* \
			  *maltivec/*mno-spe* \
			  *maltivec/*mabi=no-spe* \
			  *maltivec/*mno-isel* \
			  *mabi=altivec/*msoft-float* \
			  *mabi=altivec/*mno-spe* \
			  *mabi=altivec/*mabi=no-spe* \
			  *mabi=altivec/*mno-isel* \
			  *msoft-float/*mno-spe* \
			  *msoft-float/*mabi=no-spe* \
			  *msoft-float/*mno-isel* \
			  mno-spe/mno-isel \
			  mabi=no-spe/mno-isel \
			  mno-isel/mlittle \
			  mabi=no-spe/mno-isel/mlittle \
			  mno-spe/mlittle \
			  mabi=spe/mlittle \
			  mcpu=7400/mabi=altivec/mlittle \
			  mcpu=7400/maltivec/mlittle \
			  mabi=no-spe/mlittle \
			  mno-spe/mno-isel/mlittle \
			  mabi=altivec/mlittle \
			  maltivec/mlittle \
			  maltivec/mabi=altivec/mlittle
